const path = require('path');
const LambdaDispatcher = require('./dispatcher/lambdaDispatcher');
const LimitedLambda = require('./lambda/LimitedLambda');
const TradeLambda = require('./lambda/TradeLambda');
const MyOrderLambda = require('./lambda/MyOrderLambda');
const UserLambda = require('./lambda/UserLambda');
const MarketLambda = require('./lambda/MarketLambda');
const BlockAuditLambda = require('./lambda/BlockAuditLambda');

const dispatcherConfigPath = path.join(__dirname, '/dispatcher/dispatcher-config.yml');

exports.handler = new LambdaDispatcher(dispatcherConfigPath, {
  LimitedLambda,
  TradeLambda,
  MyOrderLambda,
  UserLambda,
  MarketLambda,
  BlockAuditLambda,
}).lambda();
